package com.second.app.generic.test;

/**
 * @Author GYZ
 * @Date 2023/10/13
 * <pre>
 *
 * </pre>
 */
public class Notepad<K,V> {

    private K key;

    private V value;

    public K getKey(){
        return this.key;
    }

    public V getValue(){
        return this.value;
    }

    public void setKey(K key){
        this.key = key;
    }

    public void setValue(V value){
        this.value = value;
    }

    public static void main(String[] args) {
        Notepad<String, Integer> stringIntegerNotepad = new Notepad<>();
        stringIntegerNotepad.setKey("汤姆");
        stringIntegerNotepad.setValue(20);

        System.out.println("姓名："+stringIntegerNotepad.getKey());
        System.out.println("年龄："+stringIntegerNotepad.getValue());
    }

}
